package com.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "man")
@Component
public class Man {
    private String userName;
    private Boolean boss;
    private String birth;
    private Integer age;
    private String[] address;
    private List<String> addressList;
    private Map<String,Object> hobbies;
    private Women women;
    private List<Women> wifes;
}
